Optimal. Leaf size=350 \[ -\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (d+e x)^5 (2 c d-b e)}+\frac{2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2} (3 b e g-10 c d g+4 c e f)}{3 e^2 (d+e x)^3 (2 c d-b e)}+\frac{5 c \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2} (3 b e g-10 c d g+4 c e f)}{6 e^2 (d+e x) (2 c d-b e)}+\frac{5 c \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2} (3 b e g-10 c d g+4 c e f)}{4 e^2}+\frac{5 \sqrt{c} (2 c d-b e) (3 b e g-10 c d g+4 c e f) \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{8 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.627347, antiderivative size = 350, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 44, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {792, 662, 664, 621, 204} \[ -\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (d+e x)^5 (2 c d-b e)}+\frac{2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2} (3 b e g-10 c d g+4 c e f)}{3 e^2 (d+e x)^3 (2 c d-b e)}+\frac{5 c \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2} (3 b e g-10 c d g+4 c e f)}{6 e^2 (d+e x) (2 c d-b e)}+\frac{5 c \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2} (3 b e g-10 c d g+4 c e f)}{4 e^2}+\frac{5 \sqrt{c} (2 c d-b e) (3 b e g-10 c d g+4 c e f) \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{8 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 792
Rule 662
Rule 664
Rule 621
Rule 204
Rubi steps
\begin{align*} \int \frac{(f+g x) \left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{5/2}}{(d+e x)^5} \, dx &=-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}-\frac{(4 c e f-10 c d g+3 b e g) \int \frac{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{5/2}}{(d+e x)^4} \, dx}{3 e (2 c d-b e)}\\ &=\frac{2 (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{3 e^2 (2 c d-b e) (d+e x)^3}-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}+\frac{(5 c (4 c e f-10 c d g+3 b e g)) \int \frac{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}}{(d+e x)^2} \, dx}{3 e (2 c d-b e)}\\ &=\frac{5 c (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{6 e^2 (2 c d-b e) (d+e x)}+\frac{2 (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{3 e^2 (2 c d-b e) (d+e x)^3}-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}+\frac{(5 c (4 c e f-10 c d g+3 b e g)) \int \frac{\sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}}{d+e x} \, dx}{4 e}\\ &=\frac{5 c (4 c e f-10 c d g+3 b e g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{4 e^2}+\frac{5 c (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{6 e^2 (2 c d-b e) (d+e x)}+\frac{2 (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{3 e^2 (2 c d-b e) (d+e x)^3}-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}+\frac{(5 c (2 c d-b e) (4 c e f-10 c d g+3 b e g)) \int \frac{1}{\sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{8 e}\\ &=\frac{5 c (4 c e f-10 c d g+3 b e g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{4 e^2}+\frac{5 c (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{6 e^2 (2 c d-b e) (d+e x)}+\frac{2 (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{3 e^2 (2 c d-b e) (d+e x)^3}-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}+\frac{(5 c (2 c d-b e) (4 c e f-10 c d g+3 b e g)) \operatorname{Subst}\left (\int \frac{1}{-4 c e^2-x^2} \, dx,x,\frac{-b e^2-2 c e^2 x}{\sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}}\right )}{4 e}\\ &=\frac{5 c (4 c e f-10 c d g+3 b e g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{4 e^2}+\frac{5 c (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{6 e^2 (2 c d-b e) (d+e x)}+\frac{2 (4 c e f-10 c d g+3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{3 e^2 (2 c d-b e) (d+e x)^3}-\frac{2 (e f-d g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{7/2}}{3 e^2 (2 c d-b e) (d+e x)^5}+\frac{5 \sqrt{c} (2 c d-b e) (4 c e f-10 c d g+3 b e g) \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{8 e^2}\\ \end{align*}
Mathematica [C] time = 0.22416, size = 173, normalized size = 0.49 \[ \frac{2 ((d+e x) (c (d-e x)-b e))^{5/2} \left (\frac{(d+e x) (b e-2 c d)^2 (3 b e g-10 c d g+4 c e f) \, _2F_1\left (-\frac{5}{2},-\frac{1}{2};\frac{1}{2};\frac{c (d+e x)}{2 c d-b e}\right )}{\sqrt{\frac{b e-c d+c e x}{b e-2 c d}}}+(e f-d g) (b e-c d+c e x)^3\right )}{3 e^2 (d+e x)^4 (2 c d-b e) (b e-c d+c e x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.016, size = 5227, normalized size = 14.9 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 22.2778, size = 2010, normalized size = 5.74 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]